package com.smart.home.enums;

/**
 * 开关按钮状态定义
 *
 * @author zhangpeng
 * @version 1.0
 * @date 2017-03-10
 */
public enum SwitchEnum {

    CLOSE("关", "00"),
    OPEN("开", "01"),
    OPEN_OR_CLOSE("开关切换", "02"),
    INCHING("点动", "03"),
    CLOSE_ALL("关闭全部", "04"),
    OPEN_ALL("打开全部", "05");

    private String name;
    private String code;

    SwitchEnum(String name, String code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public String getCode() {
        return code;
    }
}
